package com.wy.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * goods_order
 * @author 
 */
@Data
public class GoodsOrder implements Serializable {
    /**
     * 订单id
     */
    @TableId
    private Long orderId;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 卖方用户id
     */
    private Long sellerUserId;

    /**
     * 买方用户id
     */
    private Long buyerUserId;

    /**
     * 交易金额
     */
    private BigDecimal transactionAmount;

    /**
     * 卖方地址id
     */
    private Long sellerAddressId;

    /**
     * 买方地址id
     */
    private Long buyerAddressId;

    /**
     * 状态（1待付款 2已付款）默认1
     */
    private String status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private String typeName;

    private static final long serialVersionUID = 1L;
}